package com.sg.controller.bff;

import com.sg.service.biz.bff.ProgressPublicTechnicaCapacityService;
import com.sg.dto.biz.bff.req.*;
import com.sg.dto.biz.bff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(
        value = "ProgressPublicTechnicaCapacity",
        tags = {"ProgressPublicTechnicaCapacity"}
)
@RestController
// @RequestMapping("/oms/progressPublicTechnicaCapacity/")
public class ProgressPublicTechnicaCapacityController {

    @Autowired
    ProgressPublicTechnicaCapacityService progressPublicTechnicaCapacityService;

    /**
     * B3查询单内容操作进度详情(管理)
     * gen by moon at 5/11/2023, 8:41:02 PM
     */
    @PostMapping("/oms/mgt/progressPublicTechnicaCapacity/querySingleContentOperateProgressDetail")
    @ApiOperation(value = "B3查询单内容操作进度详情(管理)", response = OkrResult.class)
    public OkrResult<BffQuerySingleContentOperateProgressDetailRespDto> querySingleContentOperateProgressDetail(@RequestBody(required = false) @Validated BffQuerySingleContentOperateProgressDetailReqDto reqDTO) {
        return OkrResult.success(progressPublicTechnicaCapacityService.querySingleContentOperateProgressDetail(reqDTO));
    }

    /**
     * B3查询多内容操作进度列表(管理)
     * gen by moon at 5/11/2023, 8:50:29 PM
     */
    @PostMapping("/oms/mgt/progressPublicTechnicaCapacity/queryMultiContentOperateProgressList")
    @ApiOperation(value = "B3查询多内容操作进度列表(管理)", response = OkrResult.class)
    public OkrResult<BffQueryMultiContentOperateProgressListRespDto> queryMultiContentOperateProgressList(@RequestBody(required = false) @Validated BffQueryMultiContentOperateProgressListReqDto reqDTO) {
        return OkrResult.success(progressPublicTechnicaCapacityService.queryMultiContentOperateProgressList(reqDTO));
    }
}
